<?php
class Work extends ActiveRecord\Model{
	
	static $table_name= "works";
	 static $belongs_to = array(
     array('photo', 'class_name'=>'photo')
  );
	
}